import React from 'react';
import {BrowserRouter, Route, Switch} from 'react-router-dom';
import Home from './page/home/Home';
import Orders from './page/orders/Orders';
import Navigation from './page/navigation/Navigation';
import EChartsTest from './page/basedTest/echartsTest/EChartsTest';

//open项目
// import Vote from './page/vote/Vote';
// import Voted from './page/vote/Voted';
// import VideoSide from './page/videoSide/VideoSide';
// import VideoSideTest from './page/videoSideTest/VideoSide';

const AppRouter = () => {
    return  <BrowserRouter>
                    <Switch>
                        <Route path='/echarts' exact={true} component={EChartsTest} aa={1}></Route>
                        <Navigation>
                            {/* open项目 */}
                            {/* <Route path='/videoSide' component={VideoSide} ></Route>
                            <Route path='/videoSidetext' component={VideoSideTest} ></Route>
                            <Route path='/voted/:player' component={Voted} ></Route>
                            <Route path='/' component={Vote} ></Route> */}
                            <Route path='/' component={Orders}></Route>
                            <Route path='/home' exact={true} component={Home} aa={1}></Route>
                        </Navigation>
                    </Switch>
        </BrowserRouter>
}

export default AppRouter